package com.ruoyi.project.seeDoctor.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.seeDoctor.domain.MedReg;
import com.ruoyi.project.seeDoctor.service.IViewListService;
import com.ruoyi.project.system.domain.SysPost;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/seeDoctor/viewList")
public class ViewListController extends BaseController {
    @Autowired
    private IViewListService iViewListService;

    /**
     * 获取岗位列表
     */
   @PreAuthorize("@ss.hasPermi('seeDoctor:viewList:list')")
    @GetMapping("/list")
    public TableDataInfo list(MedReg medReg)
    {

        startPage();
        List<MedReg> list = iViewListService.selIViewListService(medReg);
        return getDataTable(list);
    }
}
